<?php 
	session_start();
	$_SESSION ["USERID"] = "";
	$_SESSION ["USERNAME"] = "";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>YuanPai CMS</title>
	<script type="text/javascript" src="js/jquery.js"></script>
	<link rel="stylesheet" type="text/css" href="css/base.css" />
	<style type="text/css">
		body {background-color: #eff6fc;font-family: "宋体";font-size: 12px;color: #666666;line-height: 15px;}
		#login_box{font-family: "宋体";font-size: 12px;color: #666666;height: 120px;width:500px;border: 1px solid #b4cfd8;margin-top: 150px;}
	</style>
	<script type="text/javascript">

		function get_rdms() {
			var dt = new Date();
			var gt = dt.getTime();
			var sd = (gt * 9301 + 49297) % 233280;
			return sd / (233280.0);
		}
		
		function reflash_code(){
			var uid = get_rdms();
			$("#code_img").attr("src","render_image.php?id="+uid);
		}
	</script>
</head>
<body>
	<form action="loginAction.php" method="post" name="userloginform">
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
		  <tr>
		    <td valign="middle"> <br />
			     <table width="300" border="0" align="center" cellpadding="0" cellspacing="0" id="login_box">
			        <tr>
			          <td height="32" colspan="3" bgcolor="#FFFFFF" align="center">
			          	<br /><br />管理员登陆<br /><br />
			          </td>
			        </tr>        
			        <tr>
			          <td bgcolor="#FFFFFF">&nbsp;</td>
			          <td width="91" bgcolor="#FFFFFF"></td>
			          <td width="400" bgcolor="#FFFFFF">
				          <table width="95%" border="0" align="center" cellpadding="5" cellspacing="5">
				            <tr>
				              <td width="50">账&nbsp;&nbsp;号: </td>
				              <td width="280"><input name="username" type="text" id="username" style="width: 170px;"/></td>
				            </tr>
				            <tr>
				              <td>密&nbsp;&nbsp;码: </td>
				              <td><input name="userpass" type="password" id="userpass" style="width: 170px;"/></td>
				            </tr>
				            <tr>
				              <td>验证码:</td>
				              <td><input name="code" type="text" id="code" size="10" />
				                <img id="code_img" src="render_image.php" hspace="10" align="absmiddle" /><a href="javascript:reflash_code();">换一个</a></td>
				            </tr>
				          </table>
			          </td>
			        </tr>
			        <tr>
			          <td width="9" bgcolor="#FFFFFF">&nbsp;</td>
			          <td height="50" align="center" bgcolor="#FFFFFF">&nbsp;</td>
			          <td height="50" align="left" bgcolor="#FFFFFF" style="padding-left: 85px;"><input style="height:25px;width:80px;" type="submit" name="button" id="button" value="登  录" /></td>
			        </tr>
			      </table>
		      </td>
		  </tr>
		</table>
	</form>
</body>
</html>